home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_jep_commie_intro.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
2KB
|
95 lines
# Jones 3D Cog Script
#
# jep_commie_intro.cog
#
# [DS] [GGJ]
#
# (C) 1999 LucasArts Entertainment Co. All Rights Reserved
# ==============================================================================
symbols
message startup
message entered
sector sec_commieTrigger
thing commiepos0 nolink
thing commiepos1 nolink
thing commiepos2 nolink
thing movepos0 nolink
thing movepos1 nolink
thing movepos2 nolink
template commie_tpl0=jungle_tokarev local
template commie_tpl1=Khaki_simonov local
thing player local
thing commie0 local
thing commie1 local
thing commie2 local
int int_demoVar=0 #set to 1 in demo
int int_triggerOnce=0 local
flex commieWake local
end
# ==============================================================================
code
startup:
if (int_demoVar == 1) return;
call commieWake;
return;
# ==============================================================================
entered:
if (GetSenderRef() != sec_commieTrigger) return;
if (int_triggerOnce != 0) return;
int_triggerOnce = 1;
call commieWake;
return;
# ==============================================================================
commieWake:
player=GetLocalPlayerThing();
# Make commies...
commie0 = CreateThing(commie_tpl0, commiepos0);
AISetCutsceneMode(commie0);
CaptureThing(commie0);
ClearThingFlags(commie0, 0x80000);
commie1 = CreateThing(commie_tpl1, commiepos1);
AISetCutsceneMode(commie1);
CaptureThing(commie1);
ClearThingFlags(commie1, 0x80000);
commie2 = CreateThing(commie_tpl0, commiepos2);
AISetCutsceneMode(commie2);
CaptureThing(commie2);
ClearThingFlags(commie2, 0x80000);
AISetCutsceneMode(commie0);
AISetCutsceneMode(commie1);
AISetCutsceneMode(commie2);
sleep(30.0);
AISetMoveSpeed(commie0, 0.8);
AISetMoveSpeed(commie1, 1.0);
AISetLookThingEyeLevel(commie0, movepos0);
AISetLookThingEyeLevel(commie1, movepos1);
AISetMoveThing(commie0, movepos0, 0);
sleep(0.5);
AISetMoveThing(commie1, movepos1, 1);
sleep(0.5);
AISetMoveSpeed(commie2, 1.0);
AISetLookThingEyeLevel(commie2, movepos2);
AISetMoveThing(commie2, movepos2, 0);
AIClearCutsceneMode(commie0);
AIClearCutsceneMode(commie1);
AIClearCutsceneMode(commie2);
return;
end